import Lable from "@/pages/Lable"
import Category from "@/pages/Category"
import Archive from "@/pages/Archive"
import Knowledge from "@/pages/Knowledge"
import Article from "@/pages/Article"

import Home from "@/pages/Home/index"
import { Navigate } from "react-router-dom"

export default [
  {
    path: "/home",
    element: <Home />,
  },
  {
    path: "/category/list",
    element: <Category />,
  },
  {
    path: "/tag/list",
    element: <Lable />,
  },
  {
    path: "/archive/list",
    element: <Archive />,
  },
  {
    path: "/wiki/list",
    element: <Knowledge />,
  },
  {
    path: "/article/:id",
    element: <Article />,
  },
  {
    path: "/",
    element: <Navigate to="/home" />,
  },
]
